package almata.dai.jhuguet;

import static org.junit.Assert.*;

import java.util.Collection;


import org.junit.Test;

public class GestorBDTest {
	GestorBD gestor = new GestorBD();
	
	@Test
	public void testTotalCentres() {
		Collection<Centre> centres = gestor.obtenirCentres();
		int resultat = centres.size();
		System.out.println(resultat);
		assertTrue(resultat == 2);
	}
	
	@Test
	public void testTotalSales() {
		Collection<Sala> sales = gestor.obtenirSala();
		int resultat = sales.size();
		System.out.println(resultat);
		assertTrue(resultat == 3);
	}
	
	@Test
	public void testTotalAparells() {
		Collection<Aparell> aparells = gestor.obtenirAparell();
		int resultat = aparells.size();
		System.out.println(resultat);
		assertTrue(resultat == 2);
	}
	
}
